package com.top.entiy;

import com.top.utils.FormatUtil;

import java.util.Date;

/**
 * 菜品类别实体类
 */
public class FoodCategory {
    /**
     * 菜品类别id
     */
    private Integer id;
    /**
     * 父菜类id
     */
    private Integer parentId;
    /**
     * 菜类名称
     */
    private String categoryName;
    /**
     * 排序
     */
    private Integer sort;
    /**
     * 创建时间
     */
    private Date createTime;
    /**
     * 更新时间
     */
    private Date upateTime;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    public String getCategoryName() {
        return categoryName;
    }

    public void setCategoryName(String categoryName) {
        this.categoryName = categoryName;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpateTime() {
        return upateTime;
    }

    public void setUpateTime(Date upateTime) {
        this.upateTime = upateTime;
    }

    @Override
    public String toString(){
        return FormatUtil.format(15,id,categoryName,sort,createTime,upateTime);
    }
    public String getColumn(){
        return FormatUtil.format(15,"ID","菜类名称","排序","创建时间","更新时间");
    }


}

